package com.inews.base.security.repository;

import java.util.List;

import com.inews.base.persistence.mybatis.MyBatisRepository;
import com.inews.base.security.vo.SecurityUserDetail;
import com.inews.business.entity.TblBaseOrg;
import com.inews.business.entity.TblBaseParam;
import com.inews.business.entity.TblBaseResource;

@MyBatisRepository
public interface SecurityDao {
	
	/**
	 * 根据登录用户名查询对应的资源.
	 * 
	 * @param loginName
	 *            the login name
	 * @return the base resource by login name
	 */
	public List<TblBaseResource> getBaseResourceByLoginName(String loginName);
	
	
	
	/**
	 * 根据登录用户名查询对应用户信息.
	 *
	 * @param loginName the login name
	 * @return the base user by login name
	 */
	public List<SecurityUserDetail> getBaseUserByLoginName(String loginName);
	
	
	
	/**
	 * 查询机构PO.
	 *
	 * @param filters the filters
	 * @return the list
	 * @throws Exception the exception
	 */
	public List<TblBaseOrg> findTblBaseOrgPo() throws Exception;
	
	
	
	/**
	 * 查询资源PO.
	 *
	 * @return the list
	 * @throws Exception the exception
	 */
	public List<TblBaseResource> findTblBaseResourcePo() throws Exception;
	
	
	
	/**
	 * 查询系统参数.
	 *
	 * @param type the type
	 * @return the list
	 * @throws Exception the exception
	 */
	public List<TblBaseParam> findTblBaseParamPo(String type, String reserved1) throws Exception;
	
	
	
}
